import baseRequest from '../utils/requset'
// import baseIndexRequest from '../utils/requset'

// 发现首页--更多活动--获取活动列表 /api/activities/home-more 
export function getActivityListApi (data) {
    return baseRequest.baseRequest(
        'api/activities/home-more',
        'get',
        data
    )
}
// 小区首页--活动--获取活动列表 /api/activities/property-more get
export function getPropertyActivityListApi (data) {
    return baseRequest.baseRequest(
        'api/activities/property-more',
        'get',
        data
    )
}


// 获取活动详情 /api/activities/detail/{activitiesId} get
export function getActivityDetailApi (activitiesId) {
    return baseRequest.baseRequest(
        `api/activities/detail/${activitiesId}`,
        'get'
    )
}


// 活动报名信息 /api/activitySignup/sign-up-info/activity/{activitiesId} get
export function getActivitySignupInfoApi (activitiesId) {
    return baseRequest.baseRequest(
        `api/activitySignup/sign-up-info/activity/${activitiesId}`,
        'get'
    )
}

// 活动报名 /api/activities2/addActivitiesRegistrations post
export function signUpActivitiesApi (data) {
    return baseRequest.baseRequest(
        'api/activitySignup/sign-up',
        'post',
        JSON.stringify(data)
    )
}
// 报名成功 /api/activitySignup/signup-success-data/{activitySignupId}
export function getSignupSuccessDataApi (activitySignupId) {
    return baseRequest.baseRequest(
        `api/activitySignup/signup-success-data/${activitySignupId}`,
        'get'
    )
}

// 已报名活动 /api/activitySignup/signed-detail/{activityId}/{userId}
export function getSignedActivityApi (activityId) {
    return baseRequest.baseRequest(
        `api/activitySignup/signed-detail/${activityId}`,
        'get'
    )
}
// 取消报名 /api/activitySignup/cancel-sign-up/{activityId}/{userId} post
export function cancelSignUpActivityApi (activityId) {
    return baseRequest.baseRequest(
        `api/activitySignup/cancel-sign-up/${activityId}`,
        'get'
    )
}


// 我的活动 /api/activitySignup/my-activities/{userId} get
export function getMyActivitiesApi () {
    return baseRequest.baseRequest(
        'api/activitySignup/my-activities',
        'get'
    )
}


// 已报名用户列表 /api/activitySignup/registered-users/{activitiesId} get
export function getRegisteredUsersApi (activitiesId) {
    return baseRequest.baseRequest(
        `api/activitySignup/registered-users/${activitiesId}`,
        'get'
    )
}

// 小区主页活动列表 /api/activities/community-activities/{organizationId} get
export function getCommunityActivitiesApi (organizationId) {
    return baseRequest.baseRequest(
        `api/activities/community-activities/${organizationId}`,
        'get'
    )
}

// 扫一扫参加活动 签到 /api/activityCheckIns/scan/{activitiesId} get
export function scanActivityApi (activitiesId) {
    return baseRequest.baseRequest(
        `api/activityCheckIns/scan/${activitiesId}`,
        'get'
    )
}


/**
 * 关注用户
 */
// 关注用户 /api/activityComment/followUser get
export function followUserApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/followUser',
        'get',
        data
    )
}



/**
 * 活动评价
 *
 */

// 晒图 /api/activityComment/addPost post
export function addPostApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/addPost',
        'post',
        data
    )
}


// 晒图底部的评论 /api/activityComment/addComment post
export function addCommentApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/addComment',
        'post',
        data
    )
}

//评论列表 /api/activityComment/pageListPost get
export function getCommentListApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/pageListPost',
        'get',
        data
    )
}

// 评论点赞  /api/activityComment/likeComment get
export function likeCommentApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/likeComment',
        'get',
        data
    )
}

// 评价详情 /api/activityComment/commentInfo get
export function getCommentInfoApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/commentInfo',
        'get',
        data
    )
}

/**
 * 评价详情
 * （页面晒图底部回复中的）
 */
// 活动评论详情 一级  /api/activityComment/getFirstCommentList get
export function getFirstCommentListApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/getFirstCommentList',
        'get',
        data
    )
}

// 活动评论详情 二级  /api/activityComment/getSecondCommentList get
export function getSecondCommentListApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/getSecondCommentList',
        'get',
        data
    )
}

// 活动评论详情 三级  /api/activityComment/getThirdCommentList get
export function getThirdCommentListApi (data) {
    return baseRequest.baseRequest(
        'api/activityComment/getThirdCommentList',
        'get',
        data
    )
}